package peng.yang.express.Bean;


import android.content.Context;
import android.support.v4.app.Fragment;

import java.util.ArrayList;
import java.util.List;

import DataBaseUtils.SQLLiteHelperCheck;
import peng.yang.express.Fragment.Fragment01;
import peng.yang.express.Fragment.Fragment02;
import peng.yang.express.Fragment.Fragment03;
import peng.yang.express.R;
import peng.yang.express.Util.HistoryMembersDao;
import peng.yang.express.Util.PhoneMembersDao;


/**
 * Created by Administrator on 2016/6/22.
 */


public class ListRes {

    public static List<Fragment> getList() {
        List<Fragment> fragmentslist = new ArrayList<>();
        fragmentslist.add(new Fragment01());
        fragmentslist.add(new Fragment02());
        fragmentslist.add(new Fragment03());

        return fragmentslist;
    }

    public static List<Integer> getIcon() {
        List<Integer> list = new ArrayList<>();
        list.add(R.drawable.bottom_icon_01);
        list.add(R.drawable.bottom_icon_02);
        list.add(R.drawable.bottom_icon_03);

        return list;
    }

    public static List<String> getName() {
        List<String> namelist = new ArrayList<>();
        namelist.add("快递查询");
        namelist.add("查询历史");
        namelist.add("快递电话");

        return namelist;
    }

    public static List<ExpressMember> getMemeber(Context context) {
         HistoryMembersDao historyMembersDao = new HistoryMembersDao(context);
        List<ExpressMember> expressMembers=historyMembersDao.getAllMembers();


/*        List<ExpressMember> expressMembers = new ArrayList<>();
        expressMembers.add(new ExpressMember(R.drawable.express,"圆通快递","2234","已签收","鞋子"));
        expressMembers.add(new ExpressMember(R.drawable.express,"圆通快递","2234","已签收","鞋子"));
        expressMembers.add(new ExpressMember(R.drawable.express,"圆通快递","2234","已签收","鞋子"));*/

        return expressMembers;
    }
/*
    public static List<ExpressMember> getTelMemeber() {
        List<ExpressMember> expressMembers = new ArrayList<>();
        expressMembers.add(new ExpressMember(R.drawable.express,"圆通快递","2234"));
        expressMembers.add(new ExpressMember(R.drawable.express,"圆通快递","2234"));
        expressMembers.add(new ExpressMember(R.drawable.express,"圆通快递","2234"));

        return expressMembers;
    }*/

}
